<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML>
<html>
  <head>
    <title>模块清单</title>
	<%@ include file="include/common.jsp" %>
  </head>
  <body>
  <div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container-fluid">
        <a class="brand" href="#">模块统一管理平台</a>
      </div>
  </div>
</div>
<div class="hr-mt"></div>
<div>
  	<h2 class="span12">开放模块</h2>
  	<div id="accordion" class="span8">
	   	<c:forEach items="${modules}" var="module">
	   		<h3><a href="#">${module.name}（${module.uid}）</a></h3>
	   		<div>
	   			<p>
	   				<label>发布方式 ${module.publisherDispatcherName}</label>
	   				<label>开放方法</label>
	   				<div>
	   					<table class="table">
	   						<tbody>
						   		<c:forEach items="${module.methods}" var="method">
						   			<tr><td style="font-family: Courser-New;">${method.returnType.simpleName} ${method.name}(<c:forEach items="${method.parameterTypes}" var="parameterType" varStatus="status">${parameterType.simpleName}<c:if test="${not status.last}">, </c:if></c:forEach>)</td></tr>
						   		</c:forEach>
					   		</tbody>
			   			</table>
			   		</div>
	   			</p>
	   		</div>
	   	</c:forEach>
   	</div>
  </div>
   	<script type="text/javascript">
   		$("#accordion").accordion();		
   	</script>
  </body>
</html>
